import Vue from 'vue'
import VueRouter from 'vue-router'
import ScreenPage from '@/views/ScreenPage'
import SellerPage from '@/views/SellerPage'
import HotPage from '@/views/HotPage'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/screen'
  },
  {
    path: '/screen',
    component: ScreenPage
  },
  {
    path: '/seller',
    component: SellerPage
  },
  {
    path: '/hot',
    component: HotPage
  }
]

const router = new VueRouter({
  routes
})

export default router
